package com.lhn.spring5.factorybean;

import org.springframework.beans.factory.FactoryBean;

import java.util.Date;

/**
 * 获取日期
 *
 * @author lhn
 * @date 2021/12/28 16:05
 * @since 1.0.0
 **/
public class NextDayDateFactoryBean implements FactoryBean {


    @Override
    public Object getObject() throws Exception {
        return new Date();
    }

    @Override
    public Class getObjectType() {
        return Date.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}